Plug another memory leak
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Oct 2014 20:07:25 +0000 (16:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Oct 2014 20:07:57 +0000 (16:07 -0400)
Also found by valgrind.

gdk/gdkwindow.c

index a4e2bbb5657bba3ac1959fe00e527dbcb4a0794b..3bef1da5312ba7131a47a7d1b065ab903fdcac91 100644 (file)
@@ -3010,6 +3010,7 @@ gdk_window_mark_paint_from_clip (GdkWindow          *window,
       cairo_region_subtract (impl_window->current_paint.flushed_region, clip_region);
       cairo_region_union (impl_window->current_paint.need_blend_region, clip_region);
     }
+  cairo_region_destroy (clip_region);
 
   /* Clear the area on the double buffer surface to transparent so we
      can start drawing from scratch the area "above" the flushed